#include<stdio.h>
#include<stdlib.h>
#include<string.h>

#include<unistd.h>
#include<sys/types.h>
#include<sys/stat.h>
#include<fcntl.h>

int main(int argc,char *argv[])
{
char filename[100];//

int fp,mf;
//printf("myod filepath:");//
//gets(filepath);
mf=open(argv[1],O_RDONLY);
if(mf==-1){
printf("Failure to open file\n");
perror(argv[1]);
return 0;
}
char ch;
char STR[1000];
int i,n;
i=0;
while((fp=read(mf,STR,1))!=0){
//STR[i]=ch;
i++;
//putchar(ch);
}
STR[i]='\0';
//printf("%d",i);
fclose(fp);
od(STR,i);
}



